home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
CD ROM Paradise Collection 4
/
CD ROM Paradise Collection 4 1995 Nov.iso
/
filutil
/
dfmake.zip
/
LIB
/
DFLIB.H
< prev
next >
Wrap
C/C++ Source or Header
|
1994-07-30
|
705b
|
31 lines
#define DF_SIGN 0x41544144 // 'DATA'
#define DF_LENGTH 21
#define DF_NAME_S 13
#define DF_OFFSET_S 4
#define DF_LENGTH_S 4
#define DF_SIGN_SIZE 4
#define DF_OFFSET_SIZE 4
#define DF_NFILES_SIZE 2
#define DF_SIGN_OFF -DF_SIGN_SIZE
#define DF_OFFSET_OFF -DF_OFFSET_SIZE+DF_SIGN_OFF
struct datafile {
BYTE name[13];
DWORD offset;
DWORD length;
struct datafile *next;
};
typedef struct datafile DATAFILE;
WORD __cdecl df_open(STR);
void __cdecl df_close(WORD);
DATAFILE * __cdecl df_getinfos(WORD);
void __cdecl df_delinfos(DATAFILE *);
PTR __cdecl df_read(WORD,DATAFILE *,STR,PTR);